/*
 * @title:
 * @Description:
 * @Author: JZT.饶慧勇
 * @Date: 2025-05-29 18:02:44
 * @LastEditors: JZT.饶慧勇
 * @LastEditTime: 2025-06-06 10:55:29
 */
interface UserStoreState {
  token: null | string;
  key: number;
}

export const useUserStore = defineStore('user', {
  state: (): UserStoreState => ({
    token: '暂无token',
    key: 111
  }),
  getters: {},
  actions: {
    setToken(token: string) {
      this.token = token;
    }
  },
  persist: ['token']
});
